<?php 
/* ================================================================================
 * LWAdmin	 
 *
 * users_new.php: This is the add users file for Living Web.
 *
 * Author: Eric Hendrickson (enhendrickson@liberty.edu)
 * Date: 2/18/05
   ================================================================================ */
	
	global $SSO, $Security, $AppID, $User, $DB;
	//Check to see if there is a valid session 
	$SessionInfo = $SSO->isValidSession("index.php?action=login", $SSO->getSessionInformation());	
	
	//Check to see if the user has rights to be on LWAdmin
	$PageRights = array('ADMIN','USERADMIN');
	$Security->ValidateUser($SessionInfo['username'], $AppID, $PageRights, 1);
	
	//Grab the user info
	$UserInfo = $User->GetUserInfo($SessionInfo['username']);
	
	//validation object
	$validForm = new FormValidation();	
?>
	
<table style="border-spacing:0px;border:0px;padding:0px;" width="100%" border="0">
	<tr>
		<td>
			<?php
				//check for a blank 'step' or if the 'step' HTTP variable does not exist
				if(!isset($_GET['step']) || $_GET['step'] == '')
				{
					include('users_new_step_1.php');
					$_GET['step'] = '1';
				}
				else
				{
					switch($_GET['step'])
					{
						case '1':
							include('users_new_step_1.php');
							break;
						case '2':
							include('users_new_step_2.php');
							break;
						case '3':
							include('users_new_step_3.php');
							break;
						case 'cu':
							include('users_check_user.php');
							break;
						default:
							include('users_new_step_1.php');
							$_GET['step'] = '1';
							break;
					}
				}
			?>
		</td>
		<td align="right" valign="top" width="50%">
			<table cellpadding="0" cellspacing="0">
				<tr>
					<td style="border-bottom:1px solid #000000;" colspan="2"><span class="T1">Steps in Creating a New User</span>
					</td>
				</tr>
				<tr>
					<td>&nbsp;&nbsp;&nbsp;
					</td>
					<td><span class="<?php if($_GET['step'] == "1"){print "TB1";}else{print "T1";}?>">Step 1 - Create Username</span>
					</td>
				</tr>
				<tr>
					<td>&nbsp;&nbsp;&nbsp;
					</td>
					<td><span class="<?php if($_GET['step'] == "2"){print "TB1";}else{print "T1";}?>">Step 2 - User Information</span>
					</td>
				</tr>
				<tr>
					<td>&nbsp;&nbsp;&nbsp;
					</td>
					<td><span class="<?php if($_GET['step'] == "3"){print "TB1";}else{print "T1";}?>">Step 3 - Confirmation</span>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table> 
 
